<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>二维码生成器</title>
    <script src="lib/vue.global.js"></script>
    <script src="lib/qrcode.min.js"></script>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .input-container {
            margin-bottom: 20px;
        }

        .qrcode-input {
            width: 100%;
            height: 150px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            resize: vertical;
            font-family: inherit;
            font-size: 14px;
            line-height: 1.5;
            box-sizing: border-box;
        }

        .qrcode-input:focus {
            outline: none;
            border-color: #4a90e2;
            box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
        }

        .error-message {
            color: #e74c3c;
            margin-top: 8px;
            font-size: 14px;
            display: none;
        }

        .error-message.visible {
            display: block;
        }

        .qrcode-display {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            margin: 20px 0;
        }

        .qrcode-wrapper {
            text-align: center;
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .qrcode-label {
            margin-bottom: 10px;
            color: #666;
            font-size: 14px;
        }

        .qrcode-actions {
            text-align: center;
            margin-top: 20px;
        }

        button {
            background-color: #4a90e2;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.2s;
        }

        button:hover {
            background-color: #357abd;
        }

        button:active {
            background-color: #2d6da3;
        }

        .title {
            text-align: center;
            margin-bottom: 20px;
            color: #333;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="container">
            <h1 class="title">二维码生成器</h1>
            <div class="input-container">
                <textarea 
                    id="qrcodeInput"
                    class="qrcode-input" 
                    placeholder="请输入要生成二维码的文本">
                </textarea>
                <div id="errorMessage" class="error-message"></div>
            </div>
            <div id="qrcode" class="qrcode-display"></div>
            <div class="qrcode-actions">
                <button id="downloadButton">下载二维码</button>
            </div>
        </div>
    </div>
    <script src="js/qrcode-standalone.js"></script>
</body>
</html>